package org.tote.command;

import java.util.ArrayList;
import java.util.List;

public class LoggedUsersCommand extends AbstractListCommand {
	private List<UserCommandLight> loggedUsers = new ArrayList<UserCommandLight>();

	public LoggedUsersCommand() {
	}

	public LoggedUsersCommand(List<UserCommandLight> users, int page, boolean more) {
		super(page, more);
		if (users == null) {
			throw new IllegalArgumentException(
					"Users can not be null when constructing LoggedUsers command");
		}

		loggedUsers = users;
	}

	public List<UserCommandLight> getLoggedUsers() {
		return loggedUsers;
	}

	public void setLoggedUsers(List<UserCommandLight> loggedUsers) {
		this.loggedUsers = loggedUsers;
	}
}
